package org.jeecg.modules.storage.service;

import org.jeecg.modules.storage.entity.MtStorageItem;
import org.jeecg.modules.storage.entity.MtStorage;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 库存入库/出库单
 * @Author: cheng
 * @Date:   2023-04-25
 * @Version: V1.0
 */
public interface IMtStorageService extends IService<MtStorage> {

	/**
	 * 添加一对多
	 *
	 * @param mtStorage
	 * @param mtStorageItemList
	 */
	public void saveMain(MtStorage mtStorage,List<MtStorageItem> mtStorageItemList) ;
	
	/**
	 * 修改一对多
	 *
	 * @param mtStorage
	 * @param mtStorageItemList
	 */
	public void updateMain(MtStorage mtStorage,List<MtStorageItem> mtStorageItemList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
